﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace Entity.Admin
{
    [MetadataType(typeof(InquiryParameterMetadata))]
    public partial class InquiryParameter
    {
        class InquiryParameterMetadata
        {
            /// <summary>
            /// 
            /// </summary>
            [HiddenInput(DisplayValue = false)]
            public string ID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            [Required]
            [Display(Name = "参数名", Order = 1, Description = "查询条件右侧的名称")]
            public string Name { get; set; }
            /// <summary>
            /// 
            /// </summary>
            [Required]
            [Display(Name = "表单名称", Order = 2, Description = "报表接受参数的名称")]
            public string InputName { get; set; }
            /// <summary>
            /// 
            /// </summary>
            [Required]
            [Display(Name = "视图路径", Order = 3)]
            public string ViewPath { get; set; }
            /// <summary>
            /// 
            /// </summary>
            [Display(Name = "启用", Order = 4)]
            public bool Enable { get; set; }
            /// <summary>
            /// 
            /// </summary>
            [Display(Name = "备注", Order = 5)]
            public string Memo { get; set; }
            /// <summary>
            /// 
            /// </summary>
            [Display(Name = "排序", Order = 6)]
            public Nullable<int> OrderIndex { get; set; }
        }
    }
}
